package org.jeecg.common.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.modules.order.vo.OrderInfoReqVo;
import org.jeecg.common.modules.sys.entity.SysAppUpgrade;
import org.jeecg.common.modules.sys.vo.SysReqVo;
import org.jeecg.common.util.result.Result;
import org.jeecg.common.util.upgrade.AppUpgradeResponseVo;

import java.math.BigInteger;
import java.util.List;

/**
 * @author guoyh
 * @ClassName ISysAppUpgradeService
 * @Description
 * @since 2020/9/6 15:55
 **/
public interface ISysAppUpgradeService extends IService<SysAppUpgrade> {

    /**
     * 检查app版本
     * @param platform
     * @param version
     * @return
     */
    Result<AppUpgradeResponseVo> checkVersion(String platform, String version);

    /**
     * 获取版本信息
     * @param platformId
     * @param platformName
     * @param dataStart
     * @param pageSize
     * @return
     */
    List<SysReqVo> getSysInfo(BigInteger platformId, String platformName, Integer dataStart, Integer pageSize);

    /**
     * 获取版本条数
     * @param platformId
     * @param platformName
     * @return
     */
    int getSysCount(BigInteger platformId, String platformName);

}
